package refercese;

class Person{
	String name;
	int age;
	public Person(String name, int age) {
		this.name = name;
		this.age = age;
	}
}

interface Creater<T1,T2,T>{
	T create(T1 t1,T2 t2); // public Person(String name, int age)
}

public class ConstructorRefDemo {
	public static void main(String[] args) {
		Creater<String,Integer,Person> c = Person::new;
		Person p2 = c.create("zs", 20);  // Person("zs",20);
		System.out.println(p2.name);
		System.out.println(p2.age);
	}
}
